package com.pingan.haofang.searchcloud.web.index.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Min;

/**
 * 索引数据源执行导入表单
 *
 * @author baojie371
 * @date 17/5/15
 * @since 1.0.0
 */
@ApiModel(description = "索引数据源执行导入form")
public class IndexDatasourceScheduleImportForm {

    @Min(value = 1, message = "indexDatasource.id.illegal")
    @ApiModelProperty(value = "索引数据源ID，为null时表示执行导入全部数据源", allowableValues = "range[1,infinity]",
            required = true)
    private Long datasourceId;

    public Long getDatasourceId() {
        return datasourceId;
    }

    public void setDatasourceId(Long datasourceId) {
        this.datasourceId = datasourceId;
    }
}
